<h3><a href="<?=site_url('adm/category')?>"><strong><?=$this->lang->line('Root')?> </strong></a>
<?php
for($i=count($category_path)-1;$i>=0;$i--){
	$category=$category_path[$i];
?>
&#8249;<a href="<?=site_url('adm/category/'.$category['id'])?>"><strong> <?=$category['name']?> </strong></a>
<?php	
} 
?>
</h3>
<br/>
<br/>
<br/>
<?php
if(isset($notification))
{ 
?>
<div class="notification <?=$notification['type']?> png_bg">
	<a></a><a href="#" class="close"><?=img(array('title'	=> 'Close this notification',
													'alt'	=> 'Close',
													'src'	=> 'resources/images/icons/cross_grey_small.png',
	))?></a>
	<div>
	<?=$notification['content']?>
	</div>
</div>
<?php 
}
?>

<div class="content-box"><!-- Bắt đầu phần nội dung -->
				<div class="content-box-header"> <!-- Tạo các tab -->
					
					<h3><?=$this->lang->line($topic_action)?></h3>	
					<!--ul class="content-box-tabs"> 
						<li><a href="#tab4" class="default-tab">Topics</a></li>
					</ul-->				
					<div class="clear"></div>
					
					
				</div> <!--Kết thúc tạo tab -->
				
				<div class="content-box-content"> <!--  bắt đầu phần tạo nội dung tab -->
					<div class="" id="tab4"> <!-- mỗi div là 1 tab, đặt class là tab-content -->
						<?php
						if($topic_action=='create')
							echo form_open_multipart('adm/topic/'.$info['id'].'/'.$topic_action);
						else
							echo form_open_multipart('adm/topic/'.$topic['id'].'/'.$topic_action);
						?>
						<fieldset>
							<p class="column-left">
								<label><?=$this->lang->line('Topic name:')?></label>
								<input type="text" class="text-input medium-input" name="title" value="<?=$topic['title']?>" />
							</p>
							<p class="column-left">
								<label><?=$this->lang->line('SUMMARY')?></label>
								<input type="text" class="text-input medium-imput" style="width:80%" name="summary" value="<?=$topic['summary']?>" />
							</p>
							<div class="clear"></div>
							<p>
								<label><?=$this->lang->line('TOPIC_IMAGE')?></label>
								<input type="file" name="image" />
							</p>
							
							<div class="clear"></div>
							<p>
								<label><?=$this->lang->line('Content:')?></label>
								<textarea name="content" id="editor1"><?=$topic['content']?></textarea>
								<script type="text/javascript">
									var editor = CKEDITOR.replace("editor1");
									CKFinder.setupCKEditor(editor,'<?=base_url('ckfinder')?>');
								</script>
							</p>
							<div class="clear"></div>
							
						</fieldset>
						<p><input type="submit" class="button" value="<?=$topic_submit_button?>" /> <input type="button" onClick="javascript:location='<?=site_url('adm/category/'.$info['id'].'/viewtopics');?>';" value="<?=$this->lang->line('Back')?>" class="button"/></p>
						
						</form>
					</div> <!-- tạo xong 1 tab -->
				</div> <!-- End .content-box-content -->
			</div> <!-- End .content-box -->